home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
FishMarket 1.0
/
FishMarket v1.0.iso
/
fishies
/
301-325
/
disk_319
/
cnewssrc
/
uupc.lzh
/
uupc
/
strnicmp.c
< prev
next >
Wrap
C/C++ Source or Header
|
1990-01-16
|
628b
|
35 lines
/*
* strnicmp, memset
*
* Amiga (Manx) Library
*
* $Id: strnicmp.c,v 1.2 90/01/16 10:27:35 crash Exp Locker: crash $
*/
#ifndef lint
static char RCSid[] = "$Id: strnicmp.c,v 1.2 90/01/16 10:27:35 crash Exp Locker: crash $";
#endif /* lint */
#ifndef LATTICE
#include <ctype.h>
strnicmp(a, b, l)
register char *a, *b;
register int l;
{
while (l > 0 && *a && *b && (toupper(*a) == toupper(*b)))
l--, a++, b++;
return( l ? (toupper(*a) - toupper(*b)) : 0 );
}
char *memset(s, c, l)
register char *s;
register int c;
register unsigned int l;
{
while (l-- > 0)
*s++ = (char) c;
return( s );
}
#endif /* !LATTICE */